// eslint-disable-next-line no-unused-vars
const useTitle = () => {
  const { t, te } = useI18n()
  return {
    t,
    te,
    getTitle: computed(() => {
      return function (row: string) {
        return te(row) ? t(row) : row
      }
    }).value
  }
}

export default useTitle
